projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7837645
)
microblaze: Disable all cpu features before reset
author
Michal Simek
<
[email protected]
>
Wed, 7 Nov 2012 14:27:39 +0000
(15:27 +0100)
committer
Michal Simek
<
[email protected]
>
Tue, 30 Apr 2013 09:22:42 +0000
(11:22 +0200)
Fix microblaze soft reset function and disable
all cpu features. Especially disable caches because
IRQs were off by disable_interrupts().
Reported-by: John Williams <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
board/xilinx/microblaze-generic/microblaze-generic.c
patch
|
blob
|
history
diff --git
a/board/xilinx/microblaze-generic/microblaze-generic.c
b/board/xilinx/microblaze-generic/microblaze-generic.c
index 8ba99f9c50a93df6b3674198eb24514a746737af..1af0b86c75f44e13572a86e0dde7dea3825394a5 100644
(file)
--- a/
board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/
board/xilinx/microblaze-generic/microblaze-generic.c
@@
-40,7
+40,8
@@
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
puts ("Reseting board\n");
- asm ("bra r0");
+ __asm__ __volatile__ (" mts rmsr, r0;" \
+ "bra r0");
return 0;
}